$(function() {
var zoomin = "M1.999,2.332v26.499H28.5V2.332H1.999zM26.499,26.832H4V12.5h8.167V4.332h14.332V26.832zM15.631,17.649l5.468,5.469l-1.208,1.206l5.482,1.469l-1.47-5.481l-1.195,1.195l-5.467-5.466l1.209-1.208l-5.482-1.469l1.468,5.48L15.631,17.649z",
page = "M16,8.286C8.454,8.286,2.5,16,2.5,16s5.954,7.715,13.5,7.715c5.771,0,13.5-7.715,13.5-7.715S21.771,8.286,16,8.286zM16,20.807c-2.649,0-4.807-2.157-4.807-4.807s2.158-4.807,4.807-4.807s4.807,2.158,4.807,4.807S18.649,20.807,16,20.807zM16,13.194c-1.549,0-2.806,1.256-2.806,2.806c0,1.55,1.256,2.806,2.806,2.806c1.55,0,2.806-1.256,2.806-2.806C18.806,14.451,17.55,13.194,16,13.194z",
comment = "M15.985,5.972c-7.563,0-13.695,4.077-13.695,9.106c0,2.877,2.013,5.44,5.147,7.108c-0.446,1.479-1.336,3.117-3.056,4.566c0,0,4.015-0.266,6.851-3.143c0.163,0.04,0.332,0.07,0.497,0.107c-0.155-0.462-0.246-0.943-0.246-1.443c0-3.393,3.776-6.05,8.599-6.05c3.464,0,6.379,1.376,7.751,3.406c1.168-1.34,1.847-2.892,1.847-4.552C29.68,10.049,23.548,5.972,15.985,5.972zM27.68,22.274c0-2.79-3.401-5.053-7.599-5.053c-4.196,0-7.599,2.263-7.599,5.053c0,2.791,3.403,5.053,7.599,5.053c0.929,0,1.814-0.116,2.637-0.319c1.573,1.597,3.801,1.744,3.801,1.744c-0.954-0.804-1.447-1.713-1.695-2.534C26.562,25.293,27.68,23.871,27.68,22.274z",
prev = "M16,30.534c8.027,0,14.534-6.507,14.534-14.534c0-8.027-6.507-14.534-14.534-14.534C7.973,1.466,1.466,7.973,1.466,16C1.466,24.027,7.973,30.534,16,30.534zM18.335,6.276l3.536,3.538l-6.187,6.187l6.187,6.187l-3.536,3.537l-9.723-9.724L18.335,6.276z",
next = "M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466zM13.665,25.725l-3.536-3.539l6.187-6.187l-6.187-6.187l3.536-3.536l9.724,9.723L13.665,25.725z",
close = "M50,0C22.388,0,0,22.388,0,50s22.388,50,50,50s50-22.388,50-50S77.612,0,50,0z M74.731,65.894  l-8.838,8.838L50,58.838L34.106,74.731l-8.838-8.838L41.162,50L25.269,34.106l8.838-8.838L50,41.162l15.894-15.894l8.838,8.838  L58.838,50L74.731,65.894z",
o = {fill: "#999", stroke: "none"};   

jQuery('.zoom-icon').each(function(i){
        paper = Raphael($(this)[0], 64, 64)
        paper.path(zoomin).attr({fill: "#FFF", stroke: "none"}).scale(1.5, 1.5, [-18], [-18])
})
jQuery('.more-icon').each(function(i){
        paper = Raphael($(this)[0], 64, 64)
          paper.path(page).attr({fill: "#FFF", stroke: "none"}).scale(1.5, 1.5, [-15], [-15])
})
jQuery('.commentaire').each(function(i){
        paper = Raphael($(this)[0], 16, 16)
        paper.path(comment).attr(o).scale(0.5, 0.5, 0, 0)
})
jQuery('#cboxPrevious').each(function(i){
        paper = Raphael($(this)[0], 32, 32)
        paper.path(prev).attr({fill: "#3AF", stroke: "none"})
})
jQuery('#cboxNext').each(function(i){
        paper = Raphael($(this)[0], 32, 32)
        paper.path(next).attr({fill: "#3AF", stroke: "none"})
})
jQuery('#cboxClose').each(function(i){
        paper = Raphael($(this)[0], 32, 32)
        paper.path(close).attr({fill: "#000", stroke: "none"}).scale(0.5, 0.5, [15], [20])
})

});
